package com.ming.dao;



import com.ming.pojo.Recipient;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Xu,
 * @data 2021/3/20，
 * @time 18:05
 */
@Mapper
@Repository
public interface RecipientMapper {
    public int addRecipient(Recipient recipient);

    public int deleteRecipient(int rid);

    public int updateRecipient(Recipient recipient);

    public Recipient queryRecipientById(int rid);

    public List<Recipient> queryRecipients();

    Integer queryRecipientByName(String username);

    Integer getMId();

    Integer queryRecipientName(String username);

}
